#include "Logistics.h"

std::string AbstractLogistics::PlaneDeliver() const
{
	std::shared_ptr<AbstractVehicle> transport = this->CreateTransport();
	std::string result = " Deliver By " + transport->Deliver();
	return result;
}

std::shared_ptr<AbstractVehicle> SeaLogistics::CreateTransport() const
{
	return std::make_shared<Ship>();
}

std::shared_ptr<AbstractVehicle> RoadLogistics::CreateTransport() const
{
	return std::make_shared<Truck>();
}